package tables

type Account struct {
	Id             int    `xorm:"not null pk autoincr INT(10)" json:"id" form:"id" mapstructure:"id"`
	Username       string `xorm:"" json:"username" form:"username" mapstructure:"username"`
	Password       string `xorm:"" json:"password" form:"password" mapstructure:"password"`
	Salt           string `xorm:"" json:"salt" form:"salt" mapstructure:"salt"`
	Phone          string `xorm:"" json:"phone" form:"phone" mapstructure:"phone"`
	Role           string `xorm:"" json:"role" form:"role" mapstructure:"role"`
	Name           string `xorm:"" json:"name" form:"name" mapstructure:"name"`
	Nickname       string `xorm:"" json:"nickname" form:"nickname" mapstructure:"nickname"`
	Avatar         string `xorm:"" json:"avatar" form:"avatar" mapstructure:"avatar"`
	Openid         string `xorm:"" json:"openid" form:"openid" mapstructure:"openid"`
	ExpireTime     int    `xorm:"" json:"expire_time" form:"expire_time" mapstructure:"expire_time"`
	UseStorageAcid int    `xorm:"" json:"use_storage_acid" form:"use_storage_acid" mapstructure:"use_storage_acid"`
	BindGoodsIds   string `xorm:"" json:"bind_goods_ids" form:"bind_goods_ids" mapstructure:"bind_goods_ids"`
	Pid            int    `xorm:"" json:"pid" form:"pid" mapstructure:"pid"`
	State          int    `xorm:"" json:"state" form:"state" mapstructure:"state"`
	LastLoginTime  int    `xorm:"" json:"last_login_time" form:"last_login_time" mapstructure:"last_login_time"`
	LastLoginIp    string `xorm:"" json:"last_login_ip" form:"last_login_ip" mapstructure:"last_login_ip"`
	CreatedAt      int    `xorm:"created" json:"created_at" form:"created_at" mapstructure:"created_at"`
	UpdatedAt      int    `xorm:"updated" json:"updated_at" form:"updated_at" mapstructure:"updated_at"`
	DeletedAt      int    `xorm:"deleted" json:"deleted_at" form:"deleted_at" mapstructure:"deleted_at"`
}
